package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.Blog;
import pojo.Follow;
import pojo.Image;
import pojo.User;

import java.util.List;

public interface FollowMapper {
    //添加
    int insert(Follow follow);
    //关注查询
    int getFollownumBysubscribe(String userid);
    //粉丝查询
    int getFollownumBybeSubscribe(String userid);
    //关注
    int follow(@Param("beSubscribe") String beSubscribe,
               @Param("subscribe") String subscribe);

    //查询是否已被关注
    Follow getFollowByUid(@Param("beSubscribe") String beSubscribe,
                                  @Param("subscribe") String subscribe);

    int delete(int followid);
}
